package com.onenine.chat.model;

import android.graphics.Bitmap;

import org.litepal.crud.DataSupport;

import java.lang.ref.SoftReference;

/**
 * 本地群组
 */
public class LGroup extends DataSupport {

    private String groupId;
    private String groupName;
    private String groupPhoto;
    private int noDisturb;//1免打扰0未设置
    SoftReference<Bitmap> photoReference;

    public LGroup() {
    }

    public String getGroupId() {
        return groupId == null ? "" : groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupPhoto() {
        return groupPhoto == null ? "" : groupPhoto;
    }

    public void setGroupPhoto(String groupPhoto) {
        this.groupPhoto = groupPhoto;
    }

    public String getGroupName() {
        return groupName == null ? "" : groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public void setPhotoReference(SoftReference<Bitmap> photoReference) {
        this.photoReference = photoReference;
    }

    public SoftReference<Bitmap> getPhotoReference() {
        return photoReference;
    }

    public int getNoDisturb() {
        return noDisturb;
    }

    public void setNoDisturb(int noDisturb) {
        this.noDisturb = noDisturb;
    }

    @Override
    public String toString() {
        return "LGroup{" +
                "groupId='" + groupId + '\'' +
                ", groupName='" + groupName + '\'' +
                ", groupPhoto='" + groupPhoto + '\'' +
                ", noDisturb=" + noDisturb +
                ", photoReference=" + photoReference +
                "} " + super.toString();
    }
}
